home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C & C++ Multimedia Cyber Classroom
/
C and C++ Multimedia Cyber Classroom (Prentice Hall) (1998).iso
/
src
/
fig09_11.jar
/
Ch09
/
Fig09_11
/
Derived.h
< prev
next >
Wrap
C/C++ Source or Header
|
1997-08-25
|
484b
|
24 lines
// Fig. 9.11: derived.h
// Definition of class Derived which inherits
// multiple base classes (Base1 and Base2).
#ifndef DERIVED_H
#define DERIVED_H
#include "base1.h"
#include "base2.h"
// multiple inheritance
class Derived : public Base1, public Base2 {
friend ostream &operator<<( ostream &, const Derived & );
public:
Derived( int, char, double );
double getReal() const;
private:
double real; // derived class's private data
};
#endif